{extend name="_container/table"}

{block name="left"}
{if check_access('add')}
<span data-href="{:url('add')}" class="layui-btn iframe"  data-title="新增" data-width="80%" data-height="80%">新增</span>
{/if}
{/block}

{block name="right"}
<input type="hidden" name="inner_join" value="{$Request.param.inner_join}">
<div class="layui-inline">
  <label class="layui-form-label">表名</label>
  <div class="layui-input-inline">
     <input type="text" name="name" autocomplete="off" value="{$Request.param.name}" class="layui-input">
  </div>
</div>
{if $searchCount > 0}
<div class="layui-inline">
    <button type="submit" class="layui-btn layuiadmin-btn-list" lay-submit lay-filter="LAY-app-contlist-search">
        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
    </button>
</div>
{/if}
{/block}

{block name="table_header"}
    <th width="3%"><input type="checkbox" value="0" class="checkall"  lay-ignore></th>
    <th  style="width: 100px" >id</th>
  <th>表名</th>
    <th lay-data="{field:'do_action'}">操作</th>
{/block}

{block name="table_body"}
<tr>
    <td style="text-align: center;"><input type='checkbox' class="chekboxs" name="ids[]" lay-ignore value="{$v.id}"></td>
    <td>{$v.id}</td>
  <td>{$v.name}</td>
    <td >
        {if check_access('update')}
        <span data-href="{:url( 'update', ['id' => $v.id , 'inner_join' => $Request.param.inner_join]  )}" class="layui-btn layui-btn-sm iframe"  data-title="编辑" data-width="80%" data-height="80%">编辑</span>
        {/if}
        {if check_access('delete')}
        <span data-href="{:url( 'delete', ['id' => $v.id] )}" class="layui-btn layui-btn-sm layui-btn-danger ajax_del" >删除</span>
        {/if}
    </td>
</tr>
{/block}



{block name="table_footer"}
{/block}

{block name="js"}
<script>
    layui.use('laydate', function() {
        var laydate = layui.laydate;
    })
</script>

{/block}

{/extend}
